package cnm.pojo;

public class CliBean {

    private String cmd;
    
    private String result;
    
    private String xpathName;

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        String temp = cmd.replaceAll("Router>", "").trim();
        if (temp.toLowerCase().endsWith("xml")) {
            temp = temp.substring(0, temp.length() - 3).trim();
        }
        if (temp.endsWith("|") | temp.endsWith(";")) {
            temp = temp.substring(0, temp.length() - 1).trim();
        }
        this.cmd = temp;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
    
    public String getXpathName() {
        return xpathName;
    }

    public void setXpathName(String xpathName) {
        this.xpathName = xpathName;
    }
}
